#include<stdio.h>
#include<math.h>

int main()
{
    int a = 2;
    int n = 5;


    int sum = 0;
    int temp = 0;

    for(int i = 0 ; i < n;i++)
    {
        temp = temp * 10 + a ;
        sum = sum + temp;
        
    }
    
    printf("%d\n",sum);

}